﻿
@{
    Layout = null;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>17商城</title>
<link type="text/css" href="~/css/css.css" rel="stylesheet" />
<link href="~/layui/css/layui.css" rel="stylesheet" />

</head>

<body style=" background:#FFF;">
 <div class="loginLogo">
  <div class="logoMid">
   <h1 class="logo" style="height:71px;padding-top:10px;"><img src="~/images/loginLogo.jpg" width="241" height="71" /></a></h1>
   <div class="loginReg">
    <a href="/home/index" style="font-size:25px;position:absolute;margin-left:-1200px;margin-top:-50px">《返回首页</a>
   </div><!--loginReg/-->
  </div><!--logoMid/-->
 </div><!--loginLogo/-->
 <div class="loginBox">
  <img src="/images/chengnuo.jpg" width="295" height="393" class="chengnuo" />
  <form  method="post" class="reg layui-form" style="padding-top:100px">
   <div class="regList">
    <label><span class="red">*</span> 账户名</label>
    <input type="text" name="UserName" lay-verify="required"  placeholder="请输入" />
   </div><!--regList/-->
   <div class="regList">
    <label><span class="red">*</span> 密码</label>
    <input type="password" id="Pwd" name="UserPwd" lay-verify="required"  placeholder="请输入" />
   </div><!--regList/-->
   <div class="regList">
    <label><span class="red">*</span> 确认密码</label>
    <input type="password" id="ReUserPwd" lay-verify="required"  placeholder="请输入" />
   </div><!--regList/-->
   
    <div class="subs" style="width:300px;margin-top:25px;margin-left:120px">
     
    <button type="submit" class="layui-btn layui-btn-fluid"  lay-submit="" lay-filter="loginForm">注册</button>
   </div>
  </form><!--reg/-->
  <div class="clears"></div>
 </div><!--loginBox/-->
 <script type="text/javascript" src="~/js/jquery.js"></script>
<script type="text/javascript" src="~/js/js.js"></script>
<script src="~/layui/layui.js"></script>
<script>
    
       layui.use(["form", 'layer'], function () {
            var form = layui.form;
            var $ = layui.$;
            var layer = layui.layer;
            
                  
                
               
           
            
             //提交
                     form.on('submit(loginForm)', function (data) {
                      
                       
                  
                         $.post("/login/zhuce", data.field, function (res) {
                          if (res.isSuccess) {
                            layer.msg(res.msg, function () {
                            window.location.href = "/login/index";
                          });
                             } else {
                              layer.msg(res.msg);
                              }
                               });
                          return false;
                  
               
            });
        });
 </script>
</body>
</html>
